package com.cnpc.producer.impl;

import com.cnpc.producer.api.ITestProducerService;
import com.cnpc.producer.api.TestProducer;
import org.springframework.web.bind.annotation.RestController;

/**
 * @date: 2020/4/24 10:54
 * @author: ruikanwang
 * @version: V0.1
 * Copyright: 2020 www.richfit.com. All rights reserved.
 */
@RestController
public class TestProducerServiceImpl implements ITestProducerService {
    @Override
    public TestProducer getTestProducer(String name) {
//        try {
//            Thread.sleep(800);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
        return new TestProducer(26,name);
    }
}
